package com.example.demo.design.responsibility;

public abstract class AbstractProcessor implements Processor{

    private final Processor next;

    public AbstractProcessor(Processor processor){
        this.next = processor;
    }


    @Override
    public Processor getNextProcessor() {
        return next;
    }

    @Override
    public abstract void process(String param);
}
